home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / Xconq 7.0d37 / source / test / all.g < prev    next >
Encoding:
Text File  |  1995-01-31  |  14.7 KB  |  764 lines  |  [TEXT/R*ch]

  1. ;;; This is a test game that mentions *everything*.
  2.  
  3. (game-module "all"
  4.   (design-notes "")
  5.   (notes "")
  6.   )
  7.  
  8. (unit-type xxxomnibus
  9.   (start-with 1)
  10.   (acp-damage-effect nil)
  11.   (acp-max 0)
  12.   (acp-min 0)
  13.   (acp-per-turn 0)
  14.   (acp-per-turn-max 0)
  15.   (acp-per-turn-min 0)
  16.   (acp-to-change-side 0)
  17.   (acp-to-detonate 0)
  18.   (acp-to-disband 0)
  19.   (acp-to-fire 0)
  20.   (acp-to-move 0)
  21.   (acp-to-transfer-part 0)
  22.   (action-priority 0)
  23.   (already-seen 0)
  24.   (already-seen-independent 0)
  25.   (assign-number 0)
  26. ;  (attitudes-max 0)
  27.   (available 0)
  28.   (can-be-self 0)
  29.   (capacity 0)
  30.   (char "")
  31. ;  (cloud-vision-effect nil)
  32.   (color "")
  33.   (country-units-max 0)
  34.   (cp 1)
  35.   (comfort-zone-max 0)
  36.   (comfort-zone-min 0)
  37.   (cp-per-self-build 0)
  38.   (cp-to-self-build 0)
  39.   (cxp-max 0)
  40.   (cxp-on-capture-effect 0)
  41.   (description-format nil)
  42.   (detonate-on-death 0)
  43.   (elevation-at-max-range 0)
  44.   (extensions nil)
  45.   (free-acp 0)
  46.   (free-mp 0)
  47.   (generic-name "")
  48.   (help "")
  49.   (hit-falloff-range 0)
  50. ;  (hp-at-max-speed 0)
  51. ;  (hp-at-min-speed 0)
  52.   (hp-max 1)
  53.   (hp-per-disband 0)
  54.   (hp-per-detonation 0)
  55.   (hp-recovery 0)
  56.   (image-name "")
  57.   (independent-growth-chance 0)
  58.   (independent-near-start 0)
  59.   (independent-takeover-chance 0)
  60.   (initial-seen-radius 0)
  61. ;  (lockon-chance 0)
  62.   (long-name "")
  63.   (move-range 0)
  64.   (mp-to-leave-world 0)
  65.   (namer "")
  66.   (name "")
  67.   (name-internal "")
  68.   (notes nil)
  69.   (occupant-total-max 0)
  70.   (point-value 0)
  71.   (parts-max 1)
  72.   (possible-sides nil)
  73.   (range 0)
  74.   (range-min 0)
  75.   (revolt-chance 0)
  76.   (see-action 0)
  77.   (see-combat 0)
  78.   (see-always 0)
  79.   (see-movement 0)
  80.   (see-occupants 0)
  81.   (self-changeable 0)
  82.   (self-resurrects 0)
  83.   (short-name "")
  84.   (speed 0)
  85.   (speed-max 0)
  86.   (speed-damage-effect nil)
  87.   (speed-min 0)
  88.   (spy-chance 0)
  89.   (spy-range 0)
  90.   (stack-order 0)
  91.   (start-with 0)
  92.   (storage 0)
  93.   (survival-zone-max 0)
  94.   (survival-zone-min 0)
  95.   (tech-from-dissection 0)
  96.   (tech-leakage 0)
  97.   (tech-max 0)
  98.   (tech-per-turn-max 0)
  99.   (tech-to-build 0)
  100.   (tech-to-dissect 0)
  101.   (tech-to-see 0)
  102.   (tech-to-use 0)
  103.   (type-in-game-max 0)
  104.   (type-per-side-max 0)
  105.   (unit-growth-chance 0)
  106.   (unit-takeover-chance 0)
  107.   (vision-range 0)
  108.   (vision-bend 0)
  109.   (vision-at 0)
  110.   (vision-adjacent 0)
  111.   (vision-at-max-range 0)
  112.   (weather-vision-range 0)
  113.   (wind-angle-effect nil)
  114.   (wind-speed-effect nil)
  115.   (wrecked-type 0)
  116.   (zz-b 0)
  117.   (zz-bb 0)
  118.   (zz-transport 0)
  119.   (zz-c 0)
  120.   (zz-cm 0)
  121.   (zz-cc 0)
  122.   (zz-uh 0)
  123.   (zz-bw 0)
  124.   (zz-abt 0)
  125.   )
  126. (unit-type xxxship)
  127. (unit-type xxxcity
  128.   (start-with 3))
  129. (unit-type xxxF-15)
  130. (unit-type xxxsatellite)
  131.  
  132. (terrain-type xxxroad
  133.   (alt-percentile-max 0)
  134.   (alt-percentile-min 0)
  135.   (available 0)
  136.   (capacity 0)
  137.   (char "")
  138.   (clouds-max 0)
  139.   (clouds-min 0)
  140.   (color "")
  141.   (country-growth-chance 0)
  142.   (country-people-chance 0)
  143.   (country-takeover-chance 0)
  144.   (country-terrain-max 0)
  145.   (country-terrain-min 0)
  146.   (description-format nil)
  147.   (elevation-max 0)
  148.   (elevation-min 0)
  149.   (extensions nil)
  150.   (help "")
  151.   (image-name "")
  152.   (independent-people-chance 0)
  153.   (liquid 0)
  154.   (maze-passage-occurrence 0)
  155.   (maze-room-occurrence 0)
  156.   (name "")
  157.   (notes nil)
  158.   (occurrence 0)
  159.   (people-max 0)
  160.   (river-chance 0)
  161.   (storage 0)
  162.   (subtype 0)
  163.   (subtype-x 0)
  164.   (temperature-average 0)
  165.   (temperature-max 0)
  166.   (temperature-min 0)
  167.   (temperature-variability 0)
  168.   (thickness 0)
  169.   (wet-percentile-max 0)
  170.   (wet-percentile-min 0)
  171.   (wind-force-average 0)
  172.   (wind-force-max 0)
  173.   (wind-force-min 0)
  174.   (wind-force-variability 0)
  175.   (wind-variability 0)
  176.   (zz-fr 0)
  177.   (color "xxxgray")
  178.   )
  179. (terrain-type |xxxdeep sea|
  180.   (color "xxxnavy xxxblue"))
  181. (terrain-type xxxshelf
  182.   (color "xxxlight xxxblue"))
  183. (terrain-type xxxshallows
  184.   (color "xxxcyan"))
  185. (terrain-type xxxriver
  186.   (color "xxxblue"))
  187.  
  188. (material-type xxxmaterial
  189.   (available 0)
  190.   (color "")
  191.   (description-format nil)
  192.   (extensions nil)
  193.   (help "")
  194.   (image-name "")
  195.   (name "")
  196.   (notes nil)
  197.   (people 0)
  198.   )
  199.  
  200. ;(print false)
  201. ;(print true)
  202.  
  203. ;;; Variables.
  204.  
  205. (set action-messages nil)
  206. (set advantage-default 1)
  207. (set advantage-max 3)
  208. (set advantage-min 1)
  209. (set alt-blob-density 0)
  210. (set alt-blob-height 0)
  211. (set alt-blob-size 0)
  212. (set alt-smoothing 0)
  213. (set calendar nil)
  214. (set calendar-part-names nil)
  215. (set country-radius-max 0)
  216. (set country-radius-min 0)
  217. (set country-separation-max 0)
  218. (set country-separation-min 0)
  219. (set edge-terrain 0)
  220. (set elapsed-real-time 0)
  221. (set event-messages nil)
  222. (set extra-turn-chance 0)
  223. (set feature-namers nil)
  224. (set feature-types nil)
  225. (set grid-color "")
  226. (set growth-stop-chance 0)
  227. (set initial-date "")
  228. (set initial-day-part 0)
  229. (set initial-year-part 0)
  230. (set last-turn 100)
  231. (set maze-passage-density 0)
  232. (set maze-room-density 0)
  233. (set player-mix-default nil)
  234. (set player-mix-required nil)
  235. (set player-sides-locked 0)
  236. (set random-events nil)
  237. (set random-state 0)
  238. (set real-time-for-game 0)
  239. (set real-time-per-side 0)
  240. (set real-time-per-turn 0)
  241. (set river-sink-terrain 0)
  242. (set scorefile-name "")
  243. (set see-all 0)
  244. (set see-terrain-always 0)
  245. (set see-weather-always 0)
  246. (set self-required 0)
  247. (set side-library nil)
  248. (set sides-max 9)
  249. (set sides-min 1)
  250. (set synthesis-methods nil)
  251. (set temperature-at-midsummer nil)
  252. (set temperature-at-midwinter nil)
  253. (set temperature-floor 0)
  254. (set temperature-floor-elevation 0)
  255. (set temperature-moderation-range 0)
  256. (set terrain-seen 0)
  257. (set turn 0)
  258. (set units-in-game-max 100)
  259. (set units-per-side-max 100)
  260. (set unseen-char "")
  261. (set unseen-color "")
  262. (set unseen-image-name "")
  263. (set use-side-priority 0)
  264. (set wet-blob-density 0)
  265. (set wet-blob-height 0)
  266. (set wet-blob-size 0)
  267. (set wet-smoothing 0)
  268. (set wind-mix-range 0)
  269.  
  270. ;;; Tables.
  271.  
  272. ;(table ablation)
  273. (table accident-damage)
  274. (table accident-hit-chance)
  275. (table accident-vanish-chance)
  276. (table acp-for-retreat)
  277. (table acp-to-add-terrain)
  278. (table acp-to-attack)
  279. (table acp-to-be-fired-on)
  280. (table acp-to-build)
  281. (table acp-to-capture)
  282. (table acp-to-change-type)
  283. (table acp-to-create)
  284. (table acp-to-defend)
  285. (table acp-to-enter-unit)
  286. (table acp-to-load)
  287. (table acp-to-remove-terrain)
  288. (table acp-to-produce)
  289. (table acp-to-repair)
  290. (table acp-to-research)
  291. (table acp-to-toolup)
  292. (table acp-to-unload)
  293. (table adjacent-terrain-effect)
  294. (table alter-terrain-range)
  295. (table altitude-max)
  296. (table altitude-min)
  297. ;(table attack-elevation-effect)
  298. (table attack-range)
  299. (table attack-range-min)
  300. (table attack-terrain-effect)
  301. (table attrition)
  302. (table base-consumption)
  303. (table base-production)
  304. (table bridge)
  305. (table build-range)
  306. ;(table can-command)
  307. (table can-enter-independent)
  308. ;(table capacity-negation)
  309. (table capture-chance)
  310. (table change-on-exhaustion-chance)
  311. (table coating-depth-max)
  312. (table coating-depth-min)
  313. (table combat-visibility)
  314. ;(table compromise-chance)
  315. (table consumption-as-occupant)
  316. (table consumption-on-creation)
  317. (table consumption-per-attack)
  318. (table consumption-per-build)
  319. (table consumption-per-move)
  320. (table consumption-per-repair)
  321. (table control-chance)
  322. (table control-chance-at)
  323. (table control-chance-adjacent)
  324. ;(table control-distance-max)
  325. (table cp-on-creation)
  326. (table cp-per-build)
  327. (table create-range)
  328. ;(table cxp-damage-effect)
  329. ;(table cxp-hit-effect)
  330. ;(table cxp-material-effect)
  331. (table cxp-per-capture)
  332. (table cxp-per-combat)
  333. (table damage)
  334. (table terrain-damage)
  335. (table defend-terrain-effect)
  336. (table detonation-accident-chance)
  337. (table detonation-damage-at)
  338. (table detonation-damage-adjacent)
  339. (table detonation-range)
  340. (table detonate-on-approach)
  341. (table detonate-on-capture)
  342. (table detonate-on-hit)
  343. (table eye-height)
  344. (table favored-terrain)
  345. (table ferry-on-entry)
  346. (table ferry-on-departure)
  347. (table friendly-hit-chance)
  348. (table hp-min)
  349. (table hp-to-garrison)
  350. (table hit-at-max-range-effect)
  351. (table hit-by)
  352. (table hit-chance)
  353. (table hp-per-repair)
  354. (table hp-to-repair)
  355. (table hp-per-starve)
  356. (table in-length)
  357. (table independent-density)
  358. (table load-max)
  359. (table material-size-in-terrain)
  360. (table material-size-in-unit)
  361. (table material-per-production)
  362. (table material-to-act)
  363. (table material-to-build)
  364. (table material-to-change-type)
  365. (table material-to-create)
  366. (table material-to-fight)
  367. (table material-to-move)
  368. (table material-to-produce)
  369. (table material-to-repair)
  370. (table mp-per-occupant)
  371. (table mp-to-ascend)
  372. (table mp-to-descend)
  373. (table mp-to-enter-terrain)
  374. (table mp-to-enter-unit)
  375. (table mp-to-enter-zoc)
  376. (table mp-to-leave-terrain)
  377. (table mp-to-leave-unit)
  378. (table mp-to-leave-zoc)
  379. (table mp-to-traverse)
  380. (table mp-to-traverse-zoc)
  381. (table night-acp-effect)
  382. (table night-vision-effect)
  383. (table occupant-acp-effect)
  384. (table occupant-can-have-occupants)
  385. (table occupant-combat)
  386. (table occupant-can-construct)
  387. (table occupant-escape-chance)
  388. (table occupant-base-production)
  389. (table occupant-vision)
  390. (table occupant-max)
  391. (table out-length)
  392. (table people-base-consumption)
  393. (table people-base-production)
  394. (table people-surrender-chance)
  395. (table people-surrender-effect)
  396. (table productivity)
  397. (table productivity-max)
  398. (table productivity-min)
  399. (table protection)
  400. (table recycleable-material)
  401. (table retreat-chance)
  402. (table road-chance)
  403. (table road-into-chance)
  404. (table scuttle-chance)
  405. (table spy-quality)
  406. (table stack-ablation)
  407. (table stack-protection)
  408. (table supply-interdiction)
  409. (table supply-on-creation)
  410. (table supply-on-completion)
  411. (table supply-per-disband)
  412. (table supply-move-rate)
  413. (table surrender-chance)
  414. (table surrender-chance-per-attack)
  415. (table surrender-range)
  416. (table tech-crossover)
  417. (table tech-per-research)
  418. (table temperature-protection)
  419. (table terrain-base-consumption)
  420. (table terrain-base-production)
  421. (table terrain-capacity-x)
  422. (table terrain-exhaustion-type)
  423. (table terrain-initial-supply)
  424. (table terrain-storage-x)
  425. (table tp-max)
  426. (table tp-per-toolup)
  427. (table tp-to-build)
  428. (table tp-attrition)
  429. (table tp-crossover)
  430. (table unit-initial-supply)
  431. (table unit-capacity-x)
  432. (table unit-size-as-occupant)
  433. (table unit-size-in-terrain)
  434. (table unit-storage-x)
  435. (table unload-max)
  436. (table vanishes-on)
  437. (table visibility)
  438. (table visibility-to-people)
  439. (table withdraw-chance-per-attack)
  440. (table wrecks-on)
  441. (table zoc-into-terrain)
  442. (table zoc-from-terrain-effect)
  443. (table zoc-range)
  444. (table zz-avg-build-time)
  445. (table zz-basic-hit-worth)
  446. (table zz-basic-capture-worth)
  447. (table zz-basic-transport-worth)
  448. (table zz-base-worth)
  449. (table zz-depot-worth)
  450. (table zz-carrier-worth)
  451. (table zz-terrain-worth)
  452.  
  453. ;;; The world.
  454.  
  455. (world 100
  456.   (axial-tilt 30)
  457.   (circumference 1000)
  458.   (day-length 10)
  459.   (year-length 400)
  460.   )
  461.  
  462. (area 20 20
  463.   (cell-width 10)
  464.   (height 25)
  465.   (initial-day-part 0)
  466.   (initial-year-part 3)
  467.   (latitude 40)
  468.   (longitude 180)
  469.   (width 30)
  470.   )
  471.  
  472. (area (aux-terrain 1 "fnsifunosiv"))
  473.  
  474. (area (cloud-bottoms "xxxababababababa"))
  475.  
  476. (area (cloud-heights "xxxababababababa"))
  477.  
  478. (area (clouds "xxxababababababa"))
  479.  
  480. (area (elevations "xxxdvandkjanldfadreo"))
  481.  
  482. (area (features (("xxxfoo") ("xxxbar")) "xxxabababaaba"))
  483.  
  484. (area (material 0 "xxxdadkjnadvadfadf"))
  485.  
  486. (area (people-sides "xxxababababababa"))
  487.  
  488. (area (temperatures "xxxuhgfuhpoafnpuoafpjh"))
  489.  
  490. (area (terrain "xxxabcdebbcacdbee"))
  491.  
  492. (area (winds "xxxababababababa"))
  493.  
  494.  
  495. (doctrine xxxdefault-doctrine
  496.   )
  497.  
  498. (doctrine xxxbe-aggressive
  499.   )
  500.  
  501. ;;; Sides.
  502.  
  503. (side 1
  504.   (name "xxxOneia")
  505.   (long-name "Nation of xxxOneia")
  506.   (short-name "xxxON")
  507.   (noun "xxxOneian")
  508.   (plural-noun "xxxOneiaa")
  509.   (adjective "xxxOneian")
  510.   (color-scheme "xxxgreen,blue")
  511.   (colors "xxxgreen,blue")
  512.   (color "xxxgreen,blue")
  513.   (emblem-name "xxxstar")
  514.   (names-locked true)
  515.   (class "test")
  516.   (active true)
  517.   (status draw)
  518.   (advantage 1)
  519.   (advantage-min 1)
  520.   (advantage-max 3)
  521.   (controlled-by 0)
  522.   (trusts)
  523.   (trades)
  524.   (next-numbers (xxxomnibus 46))
  525.   (unit-namers)
  526.   (feature-namers)
  527.   (tech)
  528.   (init-tech)
  529.   (terrain-view)
  530.   (unit-view)
  531.   (unit-view-dates)
  532.   (turn-time-used 3)
  533.   (total-time-used 15)
  534.   (timeouts 3)
  535.   (timeouts 0)
  536.   (finished-turn false)
  537.   (willing-to-draw false)
  538.   (task-limit 1)
  539.   (doctrines (u* xxxdefault-doctrine) (xxxomnibus xxxbe-aggressive))
  540.   (doctrines-locked false)
  541.   (self-unit 0)
  542.   (priority 1)
  543.   (scores (xxxtest2 15))
  544.   (ui-data)
  545.   (ai-data)
  546.   (player 1)
  547.   )
  548.  
  549. (side 2
  550.   (active false)
  551.   (status win)
  552.   )
  553.   
  554. (side 3
  555.   (status lose)
  556.   )
  557.  
  558. (side 4
  559.   (controlled-by 1)
  560.   )
  561.  
  562. (independent-units
  563.   (color "xxxblack")
  564.   )
  565.  
  566. ;;; Players.
  567.  
  568. (player 1
  569.   (name "xxxJoe")
  570.   (config-name "xxx")
  571.   (display-name "xxxscreen")
  572.   (ai-type-name "xxxstupid")
  573.   (password "xxxIUL8h786m")
  574.   (initial-advantage 1)
  575.   )
  576.  
  577. ;;; Units.
  578.  
  579. (xxxcity 0 3 3 (plan none))
  580.  
  581. (unit 45 xxxF-15
  582.   (@ 5 2 10000)
  583.   (z 15000)
  584.   (s 1)
  585.   (# 3)
  586.   (n "xxxCPT xxxSocks")
  587.   (nb 34)
  588.   (cp 1)
  589.   (hp 1)
  590.   (cxp 0)
  591.   (m 0)
  592.   (tp 0 0 0)
  593.   (in 0)
  594.   (feelings 0 0)
  595.   (x (hi there) (appear 2) (disappear 4))
  596.   (act (acp 1) (acp0 10) (aa 3) (am 3) (a move 4 2 15000))
  597.   (plan passive)
  598.   )
  599.   
  600. ;;; Agreements.
  601.  
  602. (agreement 1
  603.   (type-name "xxxtest")
  604.   (title "xxxTreaty xxxof xxxTesting")
  605.   (terms
  606.     "xxxBe xxxexcellent xxxto xxxone xxxanother!"
  607.     )
  608.   (drafters 1)
  609.   (proposers 1)
  610.   (signers 1)
  611.   (willing-to-sign 1)
  612.   (known-to side*)
  613.   (enforcement 0)
  614.   (state 0)
  615.   )
  616.  
  617. ;;; Scorekeepers.
  618.  
  619. (scorekeeper test1
  620.   (title "xxxFirst xxxTest xxxSK")
  621.   )
  622.  
  623. ;;; History.
  624.  
  625. (exu)
  626.  
  627. (evt log-started)
  628. (evt game-started)
  629. (evt side-joined)
  630. (evt side-lost)
  631. (evt side-withdrew)
  632. (evt side-won)
  633. (evt unit-started-with)
  634. (evt unit-created)
  635. (evt unit-completed)
  636. (evt unit-acquired)
  637. (evt unit-moved)
  638. (evt unit-assaulted)
  639. (evt unit-damaged)
  640. (evt unit-captured)
  641. (evt unit-killed)
  642. (evt unit-wrecked)
  643. (evt unit-vanished)
  644. (evt unit-garrisoned)
  645. (evt unit-disbanded)
  646. (evt unit-starved)
  647. (evt unit-left-world)
  648. (evt game-ended)
  649. (evt log-ended)
  650. (evt action-ok)
  651. (evt action-error)
  652. (evt cannot-do)
  653. (evt insufficient-acp)
  654. (evt insufficient-material)
  655. (evt not-implemented-yet)
  656. (evt action-done)
  657. (evt move-error)
  658. (evt insufficient-mp)
  659. (evt cannot-leave-world)
  660. (evt destination-too-far)
  661. (evt destination-full)
  662. (evt overrun-failed)
  663. (evt overrun-failed)
  664. (evt fire-into-outside-world)
  665. (evt fire-into-too-far)
  666. (evt fire-into-too-near)
  667. (evt fire-at-too-far)
  668. (evt fire-at-too-near)
  669. (evt too-far)
  670. (evt too-near)
  671.  
  672. ;;; other keywords
  673.  
  674. (define random-list
  675.   (quote
  676.     undefine
  677.     independent-units
  678.     include
  679.     battle
  680.     namer
  681.     text
  682.     print
  683.     restrict
  684.     appear
  685.     disappear
  686.     feelings
  687.     quote
  688.     list
  689.     append
  690.     remove
  691.     if
  692.     else
  693.     end-if
  694.     u*
  695.     m*
  696.     t*
  697.     non-unit
  698.     non-material
  699.     non-terrain
  700.     constant
  701.     subarea
  702.     xform
  703.     by-bits
  704.     by-char
  705.     by-name
  706.     random
  707.     grammar
  708.     junky
  709.     tasks
  710.     reset
  711.     stop
  712.     win
  713.     lose
  714.     draw
  715.     end
  716.     cell
  717.     border
  718.     connection
  719.     coating
  720.     river-x
  721.     valley-x
  722.     road-x
  723.     over-nothing
  724.     over-own
  725.     over-border
  726.     over-all
  727.     usual
  728.     reject
  729.     any
  730.     capitalize
  731.     cond
  732.     and
  733.     or
  734.     not
  735.     =
  736.     /=
  737.     <
  738.     <=
  739.     >
  740.     >=
  741.     sum
  742.     before-turn
  743.     after-turn
  744.     after-action
  745.     after-event
  746.     last-side-wins
  747.     make-fractal-percentile-terrain
  748.     make-random-terrain
  749.     make-earthlike-terrain
  750.     make-maze-terrain
  751.     make-rivers
  752.     make-countries
  753.     make-independent-units
  754.     make-initial-materials
  755.     name-units-randomly
  756.     name-geographical-features
  757.     make-roads
  758.     make-random-date
  759.     attrition-in-terrain
  760.     accidents-in-terrain
  761.     units-revolt
  762.     units-surrender
  763. ))
  764.